home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / dizzycollection / install-dizzycollection < prev    next >
Text File  |  1997-11-05  |  2KB  |  96 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #sub-dir "disk2")
  4.  
  5.  
  6. ;----------------------------
  7.  
  8. ;try to figure out a place where the user usually installs his games
  9. (if (exists "Games:" (noreq) )
  10.     (set @default-dest "Games:")
  11.     (if (exists "SYS:Games" (noreq) )
  12.         (set @default-dest "SYS:Games")
  13.         (if (exists "Work:Games" (noreq) )
  14.             (set @default-dest "Work:Games")
  15.             (if (exists "JEUX:" (noreq) )
  16.                (set @default-dest "JEUX:")
  17.                (set @default-dest "SYS:")
  18.             )
  19.         )
  20.     )
  21. )
  22.  
  23.  
  24. (set @default-dest
  25. (askdir
  26.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  27.     (help @askdir-help)
  28.     (default @default-dest)
  29.     (disk)
  30. )
  31. )
  32.  
  33. (set #dest (tackon @default-dest @app-name))
  34.  
  35.  
  36. (makedir #dest
  37.     (help @makedir-help)
  38.     (infos)
  39. )
  40.  
  41. ;----------------------------
  42.  
  43. (makedir 
  44.   (tackon #dest "disk2")
  45.   (help @makedir-help)
  46. )
  47. (copyfiles
  48.     (help @copyfiles-help)
  49.     (source "DizzyDisk1HD")
  50.     (dest #dest)
  51. )
  52. (copyfiles
  53.     (help @copyfiles-help)
  54.     (source "DizzyDisk1HD.info")
  55.     (dest #dest)
  56. )
  57. (copyfiles
  58.     (help @copyfiles-help)
  59.     (source "DizzyDisk2HD")
  60.     (dest #dest)
  61. )
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "DizzyDisk2HD.info")
  65.     (dest #dest)
  66. )
  67.  
  68. (copyfiles
  69.     (help @copyfiles-help)
  70.     (source "DizzyCHD.readme.info")
  71.     (dest #dest)
  72. )
  73.  
  74. (copyfiles
  75.     (help @copyfiles-help)
  76.     (source "DizzyCHD.readme")
  77.     (dest #dest)
  78. )
  79. (message ("\nInsert %s Disk 1 into drive %s !" @app-name #CI_drive))
  80.     (if
  81.         (= 0 (run ("copy df%ld: to \"%s\" all " #CI_unit #dest )))
  82.         ("")
  83.         (abort "\"\" must be in your PATH !")
  84.     )
  85.  
  86.  
  87. (message ("\nInsert %s Disk 2 into drive %s !" @app-name #CI_drive))
  88.     (if
  89.         (= 0 (run ("disk2file %ld \"%s/disk2/dizzyc2.d1\" SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest )))
  90.         ("")
  91.         (abort "\"disk2file\" must be in your PATH !")
  92.     )
  93.  
  94. (exit)
  95.  
  96.